package com.acdc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物联网模块心跳记录对象 iot_module_heartbeat
 * 
 * @author acdc
 * @date 2025-08-12
 */
public class IotModuleHeartbeat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增ID */
    private Long id;

    /** 所属物联网模块ID */
    @Excel(name = "所属物联网模块ID")
    private Long iotModuleId;

    /** ICCID卡号 */
    @Excel(name = "ICCID卡号")
    private String iccid;

    /** 4G信号强度（dBm） */
    @Excel(name = "4G信号强度", readConverterExp = "d=Bm")
    private Integer dfs;

    /** 供电输出状态（0：关闭，1：开启） */
    @Excel(name = "供电输出状态", readConverterExp = "0=：关闭，1：开启")
    private Integer pwrSta;

    /** 心跳记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "心跳记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date heartbeatTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIotModuleId(Long iotModuleId) 
    {
        this.iotModuleId = iotModuleId;
    }

    public Long getIotModuleId() 
    {
        return iotModuleId;
    }
    public void setIccid(String iccid) 
    {
        this.iccid = iccid;
    }

    public String getIccid() 
    {
        return iccid;
    }
    public void setDfs(Integer dfs) 
    {
        this.dfs = dfs;
    }

    public Integer getDfs() 
    {
        return dfs;
    }
    public void setPwrSta(Integer pwrSta) 
    {
        this.pwrSta = pwrSta;
    }

    public Integer getPwrSta() 
    {
        return pwrSta;
    }
    public void setHeartbeatTime(Date heartbeatTime) 
    {
        this.heartbeatTime = heartbeatTime;
    }

    public Date getHeartbeatTime() 
    {
        return heartbeatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("iotModuleId", getIotModuleId())
            .append("iccid", getIccid())
            .append("dfs", getDfs())
            .append("pwrSta", getPwrSta())
            .append("heartbeatTime", getHeartbeatTime())
            .toString();
    }
}
